﻿using Quartz;

namespace TiaoTiaoCode.TestCode.QuartzTest
{
    public class MyJob : IJob
    {
        public async Task Execute(IJobExecutionContext context)
        {
            await Task.Run(() =>
            {
                Console.WriteLine($"【{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}】执行MyJob");
                Console.WriteLine();
            });
        }
    }
}
